package com.rp.system.user.filter;//package com.rp.system.user.filter;
//
///**
// * 类说明:
// *
// * @author ****
// * @date 2020-12-21 17:09  新建
// */
//
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.servlet.DispatcherType;
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * Created by dell-3020 on 2017/8/15.
// */
//@Configuration
//public class WebConfig {
//
//
//    @Bean
//    FilterRegistrationBean tokenFilter2() {
//        FilterRegistrationBean filterReg = new FilterRegistrationBean(new TokenFilter());
//        //优先级
//        filterReg.setOrder(70);
//        filterReg.setDispatcherTypes(DispatcherType.REQUEST);
//        //匹配路径
//        List<String> urlPatterns = new ArrayList<>();
//        filterReg.addUrlPatterns("/*");
//        filterReg.addInitParameter("exclusions","/redirect/accessRestricted");
//        filterReg.setUrlPatterns(urlPatterns);
//        System.out.println("====来了");
//        return filterReg;
//    }
//}
//
